package com.uwo.commons.configuration.aop.validate.annotation;

import javax.validation.constraints.Null;
import java.lang.annotation.*;

/**
 * 数值范围
 * @author hao.yan
 */
@Documented
@Target({
        ElementType.METHOD,
        ElementType.FIELD,
        ElementType.ANNOTATION_TYPE,
        ElementType.CONSTRUCTOR,
        ElementType.PARAMETER
})
@Retention(RetentionPolicy.RUNTIME)
public @interface Number {

    long min() default -9223372036854775808L;

    long max() default 9223372036854775807L;

    int code() default 10003;

    String message() default "";

}
